local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1
L0_1 = {}
L0_1.group_id = 247003006
L1_1 = 247003006
L2_1 = 6003
L3_1 = 6001
L4_1 = {}
L5_1 = 6003
L4_1[1] = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 6004
L6_1.monster_id = 20010501
L7_1 = {}
L7_1.x = 321.506
L7_1.y = 0.09
L7_1.z = 163.596
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 270.502
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L6_1.disableWander = true
L7_1 = {}
L7_1.config_id = 6005
L7_1.monster_id = 20010501
L8_1 = {}
L8_1.x = 323.731
L8_1.y = 0.09
L8_1.z = 162.33
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 270.502
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L7_1.disableWander = true
L8_1 = {}
L8_1.config_id = 6006
L8_1.monster_id = 20010501
L9_1 = {}
L9_1.x = 323.117
L9_1.y = 0.09
L9_1.z = 157.905
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 270.502
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L8_1.disableWander = true
L9_1 = {}
L9_1.config_id = 6007
L9_1.monster_id = 20010501
L10_1 = {}
L10_1.x = 320.999
L10_1.y = 0.09
L10_1.z = 156.623
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 270.502
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L9_1.disableWander = true
L10_1 = {}
L10_1.config_id = 6008
L10_1.monster_id = 20010601
L11_1 = {}
L11_1.x = 323.87
L11_1.y = 0.09
L11_1.z = 160.073
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 270.502
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L10_1.disableWander = true
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
monsters = L5_1
L5_1 = {}
npcs = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 6003
L6_1.gadget_id = 70211111
L7_1 = {}
L7_1.x = 320.217
L7_1.y = 0.09
L7_1.z = 159.985
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 270.502
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L6_1.chest_drop_id = 21600009
L6_1.drop_count = 1
L6_1.isOneoff = true
L6_1.persistent = true
L7_1 = {}
L7_1.config_id = 6010
L7_1.gadget_id = 70310125
L8_1 = {}
L8_1.x = 320.022
L8_1.y = 0.206
L8_1.z = 140.167
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 180.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L8_1 = {}
L8_1.config_id = 6011
L8_1.gadget_id = 70310125
L9_1 = {}
L9_1.x = 320.022
L9_1.y = 0.206
L9_1.z = 180.168
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 0.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L9_1 = {}
L9_1.config_id = 6012
L9_1.gadget_id = 70310125
L10_1 = {}
L10_1.x = 340.055
L10_1.y = 0.162
L10_1.z = 159.979
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 90.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L10_1 = {}
L10_1.config_id = 6013
L10_1.gadget_id = 70310125
L11_1 = {}
L11_1.x = 300.034
L11_1.y = 0.162
L11_1.z = 159.983
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 90.0
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L11_1 = GadgetState
L11_1 = L11_1.GearStart
L10_1.state = L11_1
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
gadgets = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 6001
L7_1 = RegionShape
L7_1 = L7_1.CUBIC
L6_1.shape = L7_1
L7_1 = {}
L7_1.x = 40.0
L7_1.y = 20.0
L7_1.z = 40.0
L6_1.size = L7_1
L7_1 = {}
L7_1.x = 320.0
L7_1.y = 0.0
L7_1.z = 160.0
L6_1.pos = L7_1
L7_1 = {}
L7_1.config_id = 6002
L8_1 = RegionShape
L8_1 = L8_1.CUBIC
L7_1.shape = L8_1
L8_1 = {}
L8_1.x = 40.0
L8_1.y = 20.0
L8_1.z = 40.0
L7_1.size = L8_1
L8_1 = {}
L8_1.x = 320.0
L8_1.y = 0.0
L8_1.z = 160.0
L7_1.pos = L8_1
L5_1[1] = L6_1
L5_1[2] = L7_1
regions = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 1006001
L6_1.name = "ENTER_REGION_6001"
L7_1 = EventType
L7_1 = L7_1.EVENT_ENTER_REGION
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = ""
L6_1.action = ""
L7_1 = {}
L7_1.config_id = 1006002
L7_1.name = "ENTER_REGION_6002"
L8_1 = EventType
L8_1 = L8_1.EVENT_ENTER_REGION
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_ENTER_REGION_6002"
L7_1.action = "action_EVENT_ENTER_REGION_6002"
L8_1 = {}
L8_1.config_id = 1006009
L8_1.name = "ANY_MONSTER_DIE_6009"
L9_1 = EventType
L9_1 = L9_1.EVENT_ANY_MONSTER_DIE
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_ANY_MONSTER_DIE_6009"
L8_1.action = "action_EVENT_ANY_MONSTER_DIE_6009"
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
triggers = L5_1
L5_1 = {}
variables = L5_1
L5_1 = {}
L5_1.suite = 1
L5_1.end_suite = 0
L5_1.rand_suite = false
init_config = L5_1
L5_1 = {}
L6_1 = {}
L7_1 = {}
L6_1.monsters = L7_1
L7_1 = {}
L8_1 = 6003
L9_1 = 6010
L10_1 = 6011
L11_1 = 6012
L12_1 = 6013
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L7_1[4] = L11_1
L7_1[5] = L12_1
L6_1.gadgets = L7_1
L7_1 = {}
L8_1 = 6001
L9_1 = 6002
L7_1[1] = L8_1
L7_1[2] = L9_1
L6_1.regions = L7_1
L7_1 = {}
L8_1 = "ENTER_REGION_6001"
L9_1 = "ENTER_REGION_6002"
L7_1[1] = L8_1
L7_1[2] = L9_1
L6_1.triggers = L7_1
L6_1.rand_weight = 100
L7_1 = {}
L8_1 = {}
L9_1 = 6004
L10_1 = 6005
L11_1 = 6006
L12_1 = 6007
L13_1 = 6008
L8_1[1] = L9_1
L8_1[2] = L10_1
L8_1[3] = L11_1
L8_1[4] = L12_1
L8_1[5] = L13_1
L7_1.monsters = L8_1
L8_1 = {}
L7_1.gadgets = L8_1
L8_1 = {}
L7_1.regions = L8_1
L8_1 = {}
L9_1 = "ANY_MONSTER_DIE_6009"
L8_1[1] = L9_1
L7_1.triggers = L8_1
L7_1.rand_weight = 100
L5_1[1] = L6_1
L5_1[2] = L7_1
suites = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  if L2_2 ~= 6002 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetRegionEntityCount
  L3_2 = A0_2
  L4_2 = {}
  L5_2 = A1_2.source_eid
  L4_2.region_eid = L5_2
  L5_2 = EntityType
  L5_2 = L5_2.AVATAR
  L4_2.entity_type = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 < 1 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ENTER_REGION_6002 = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.AddExtraGroupSuite
  L3_2 = A0_2
  L4_2 = 247003006
  L5_2 = 2
  L2_2(L3_2, L4_2, L5_2)
  L2_2 = 0
  return L2_2
end
action_EVENT_ENTER_REGION_6002 = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.GetGroupMonsterCountByGroupId
  L3_2 = A0_2
  L4_2 = 247003006
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 ~= 0 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ANY_MONSTER_DIE_6009 = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 6003
  L5_2 = GadgetState
  L5_2 = L5_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_ANY_MONSTER_DIE_6009 = L5_1
L5_1 = require
L6_1 = "V2_2/RogueDungeon_ChestRoom"
L5_1(L6_1)
